<%@ page language="java" import="java.util.*,org.yoao.crm.bean.Session,org.yoao.crm.bean.StaticBean,org.yoao.crm.acl.ACLTool" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Session userSession = (Session)session.getAttribute("userSession");
String actionPermission = userSession.getActionPermission();
%>

<td width="1%" align="center" valign="middle" id="cwCellTopTitTxt"><input type="checkbox" onClick="selectAction('itemselect')" value="1" /></td>

<%if(ACLTool.isAdd(actionPermission)){%>
	<td width="2%">
		<a href="#" accesskey="n" onClick="dataHander('add','<%=basePath%>customer.crm?method=init', viewForm.itemselect);">
			<img align="absmiddle" src="<%=basePath%>images/sbtn_new.gif" alt="新增(Alt+N)" align="absmiddle">
		</a>
	</td>
<%}%>

<%if(ACLTool.isModify(actionPermission)){%>
	<td width="2%">
		<a href="#" accesskey="m" onClick="dataHander('modify','<%=basePath%>customer.crm?method=init&cid=', viewForm.itemselect);">
			<img align="absmiddle" src="<%=basePath%>images/sbtn_mod.gif" alt="修改(Alt+M)" align="absmiddle">
		</a>
	</td>
<%}%>

<%if(ACLTool.isDelete(actionPermission)){%>
	<td width="2%">
		<a href="#" accesskey="d" onClick="dataHander('delete','<%=basePath%>customer.crm?method=delete&cid=', viewForm.itemselect);">
			<img align="absmiddle" src="<%=basePath%>images/sbtn_del.gif" alt="删除(Alt+D)" align="absmiddle">
		</a>
	</td>
<%}%>

<%if(ACLTool.isSignatureYes(actionPermission)){%>
	<td width="2%">
		<a href="#" accesskey="q" onClick="dataHander('date','<%=basePath%>kmjsp/customer/selectDate.jsp?method=signature&v=1&cid=', viewForm.itemselect);">
			<img align="absmiddle" src="<%=basePath%>images/sbtn_selall.gif" alt="已签到(Alt+Q)" align="absmiddle">
		</a>
	</td>
<%}%>

<%if(ACLTool.isSignatureNo(actionPermission)){%>
	<td width="2%">
		<a href="#" accesskey="w" onClick="dataHander('date','<%=basePath%>kmjsp/customer/selectDate.jsp?method=signature&v=0&cid=', viewForm.itemselect);">
			<img align="absmiddle" src="<%=basePath%>images/sbtn_rese.gif" alt="未签到(Alt+W)" align="absmiddle">
		</a>
	</td>
<%}%>

<%if(ACLTool.isAllocation(actionPermission)){%>
	<td width="2%">
		<a href="#" accesskey="m" onClick="dataHander('allocation','<%=basePath%>kmjsp/dialog/datawindowUser.jsp', viewForm.itemselect);">
			<img align="absmiddle" src="<%=basePath%>images/btn_seluser.gif" alt="分配业务员(Alt+M)" align="absmiddle">
		</a>
	</td>
<%}%>


<%if(ACLTool.isCustType(actionPermission)){%>
	<td width="2%">
		<a href="#" accesskey="m" onClick="dataHander('date','<%=basePath%>kmjsp/customer/selectDate.jsp?method=type&cid=', viewForm.itemselect);">
			<img align="absmiddle" src="<%=basePath%>images/sbtn_yijiao.gif" alt="分配类型(Alt+T)" align="absmiddle">
		</a>
	</td>
<%}%>

<%if(ACLTool.isDownloadTemplate(actionPermission)){%>
	<td width="2%">
		<a href="<%=basePath%>template.xls" target="_blank">
			<img align="absmiddle" src="<%=basePath%>images/sbtn_Excel.gif" alt="下载模板(Alt+T)" align="absmiddle">
		</a>
	</td>
<%}%>

<%if(ACLTool.isExportIn(actionPermission)){%>
	<td width="2%">
		<a href="#" accesskey="i" onClick="dataHander('exportin','<%=basePath%>kmjsp/customer/export.jsp?key=in', viewForm.itemselect);">
			<img align="absmiddle" src="<%=basePath%>images/sbtn_in.gif" alt="导入(Alt+I)" align="absmiddle">
		</a>
	</td>
<%}%>

<%if(ACLTool.isExportOut(actionPermission)){%>
	<td width="2%">
		<a href="#" accesskey="o" onClick="dataHander('exportout','<%=basePath%>kmjsp/customer/export.jsp?key=out&cid=', viewForm.itemselect);">
			<img align="absmiddle" src="<%=basePath%>images/sbtn_out.gif" alt="导出(Alt+O)" align="absmiddle">
		</a>
	</td>
<%}%>